<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: black;
        }

        .container {
            height: 300px;
            width: 300px;
            margin: 50px;
        }

        .person {
            position: absolute;
            left: 160px;
            top: 160px;
            animation: run 3s alternate infinite;
        }

        .head {
            position: absolute;
            width: 30px;
            height: 30px;
            border: 10px solid #fff;
            border-radius: 30px;
            top: -30px;
            left: -6px;
            animation: bob 2s infinite alternate;
        }

        .body {
            height: 60px;
            width: 0px;
            border-left: 10px solid #fff;
            position: absolute;
            left: 0px;
            top: 15px;
        }

        .person .part {
            position: absolute;
            left: 0px;
            top: 75px;
        }

        .person .part.hand {
            width: 40px;
            height: 45px;
            border-left: 10px solid #fff;
            border-bottom: 10px solid #fff;
            position: absolute;
            right: 300px;
            top: 15px;
            transform-origin: 0% 0% 0px;
            animation: hand 1s infinite alternate ease-in-out;
        }

        .person .part.hand.one {
            transform: rotate3d(0, 0, 1, 80deg);
        }

        .person .part.hand.two {
            transform: rotate3d(0, 0, 1, -80deg);
            animation-delay: 0.5s;
        }

        .person .part.leg {
            width: 60px;
            height: 60px;
            border-right: 10px solid #fff;
            border-top: 10px solid #fff;
            transform-origin: 0% 0% 0px;
            animation: leg 1s infinite alternate ease-in-out ;
        }

        .person .part.leg.one {
            transform: rotate3d(0, 0, 1, 100deg);
        }

        .person .part.leg.two {
            transform: rotate3d(0, 0, 1, 10deg);
            animation-delay: 0.5s;
        }

        @keyframes bob{
            0% {
                transform: rotate3d(0, 0, 1, 5deg);
            }

            25% {
                transform: rotate3d(0, 0, 1, -30deg) skew(15deg,0deg)
            }

            50% {
                transform: rotate3d(0, 0, 1, 5deg)
            }

            75% {
                transform: rotate3d(0, 0, 1, -30deg) skew(15deg,0deg)
            }

            100% {
                transform: rotate3d(0, 0, 1, 20deg) skew(-15deg,0deg)
            }
        }
        @keyframes hand{
            0%{transform: rotate3d(0,0,1,80deg);}
            50%{transform: rotate3d(0,0,1,-70deg);}
            100%{transform: rotate3d(0,0,1,80deg);}
        }
        @keyframes leg{
            0%{transform: rotate3d(0,0,1,-5deg);}
            50%{transform: rotate3d(0,0,1,150deg);}
            0%{transform: rotate3d(0,0,1,-5deg);}
        }
        @keyframes run{
            0%{transform: translate(-200px,0px);}
            100%{transform: translate(1920px,0px);}
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="person">
            <div class="head"></div>
            <div class="part hand one"></div>
            <div class="part hand two"></div>
            <div class="body"></div>
            <div class="part leg one"></div>
            <div class="part leg two"></div>
        </div>
    </div>
</body>

</html>